package com.gdk.service.impl;

import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gdk.dao.ArticleDao;
import com.gdk.dao.LoginDao;
import com.gdk.service.ArticleService;
import com.gdk.service.LoginService;
import com.gdk.utils.Md5Utils;


/**
 * 文章业务处理
 * */
@Service("ArticleService")
public class ArticleServiceImpl implements ArticleService {
	@Autowired
    private ArticleDao articleDao;

	 @Override
	public List<Map<String, Object>> selectAllArticle(Map<String, Object> map) {
		return articleDao.selectAllArticle(map);
	}
	
	 @Override
	public int addArticle(Map<String, Object> map) {
		return articleDao.addArticle(map);
	}
	@Override
	public Map<String, Object> selectArticleDetails(Map<String, Object> map) {
		return articleDao.selectArticleDetails(map);
	}
	@Override
	public int updateArticleDetails(Map<String, Object> map) {
		return articleDao.updateArticleDetails(map);
	}
	
	
	
	@Override
	public int addV(Map<String, Object> map) {
		return articleDao.addV(map);
	}
}

